
export interface IListCard {
    img: {
        alt:string;
        src:string
    },
    meta: {
        title:string;
        description:string;
        avatar:string
    }
}

export function useListCardData():Array<IListCard> {
    return Array.from({length:100},(v,i):IListCard =>
        ({
            img: {
                alt: '...',
                src: 'https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png'
            },
            meta: {
                title: `Card title ${i+100}`,
                description: `This is the description ${i}`,
                avatar: 'https://joeschmoe.io/api/v1/random'
            }
        })
    )
}
